package com.lagou.edu.container;

import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

/**
 * 应用上下文，表示一个应用
 *
 * @author liangzj
 * @date 2021/3/28 18:03
 */
public class Context {

    private String name;

    private List<Wrapper> wrappers = new CopyOnWriteArrayList<>();

    public void addWrapper(Wrapper wrapper) {
        wrappers.add(wrapper);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Wrapper> getWrappers() {
        return wrappers;
    }

    public void setWrappers(List<Wrapper> wrappers) {
        this.wrappers = wrappers;
    }
}
